package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.IdleAffiliateMaterialMapper;
import com.ruoyi.system.domain.IdleAffiliateMaterial;
import com.ruoyi.system.service.IIdleAffiliateMaterialService;

/**
 * 闲鱼联盟物料Service业务层处理
 * 
 * @author ruoyi
 */
@Service
public class IdleAffiliateMaterialServiceImpl implements IIdleAffiliateMaterialService 
{
    @Autowired
    private IdleAffiliateMaterialMapper idleAffiliateMaterialMapper;

    /**
     * 查询闲鱼联盟物料
     * 
     * @param id 闲鱼联盟物料主键
     * @return 闲鱼联盟物料
     */
    @Override
    public IdleAffiliateMaterial selectIdleAffiliateMaterialById(Long id)
    {
        return idleAffiliateMaterialMapper.selectIdleAffiliateMaterialById(id);
    }

    /**
     * 查询闲鱼联盟物料列表
     * 
     * @param idleAffiliateMaterial 闲鱼联盟物料
     * @return 闲鱼联盟物料
     */
    @Override
    public List<IdleAffiliateMaterial> selectIdleAffiliateMaterialList(IdleAffiliateMaterial idleAffiliateMaterial)
    {
        return idleAffiliateMaterialMapper.selectIdleAffiliateMaterialList(idleAffiliateMaterial);
    }

    /**
     * 新增闲鱼联盟物料
     * 
     * @param idleAffiliateMaterial 闲鱼联盟物料
     * @return 结果
     */
    @Override
    public int insertIdleAffiliateMaterial(IdleAffiliateMaterial idleAffiliateMaterial)
    {
        return idleAffiliateMaterialMapper.insertIdleAffiliateMaterial(idleAffiliateMaterial);
    }

    /**
     * 修改闲鱼联盟物料
     * 
     * @param idleAffiliateMaterial 闲鱼联盟物料
     * @return 结果
     */
    @Override
    public int updateIdleAffiliateMaterial(IdleAffiliateMaterial idleAffiliateMaterial)
    {
        return idleAffiliateMaterialMapper.updateIdleAffiliateMaterial(idleAffiliateMaterial);
    }

    /**
     * 批量删除闲鱼联盟物料
     * 
     * @param ids 需要删除的闲鱼联盟物料主键
     * @return 结果
     */
    @Override
    public int deleteIdleAffiliateMaterialByIds(Long[] ids)
    {
        return idleAffiliateMaterialMapper.deleteIdleAffiliateMaterialByIds(ids);
    }

    /**
     * 删除闲鱼联盟物料信息
     * 
     * @param id 闲鱼联盟物料主键
     * @return 结果
     */
    @Override
    public int deleteIdleAffiliateMaterialById(Long id)
    {
        return idleAffiliateMaterialMapper.deleteIdleAffiliateMaterialById(id);
    }
} 